Skip to content

Add premium forecast endpoints to SDK - #53

Merged
lorenzo-solcast merged 3 commits into
Solcast:mainfrom
nik-solcast:feature/premium-forecast-sdk
Aug 31, 2026
Merged

Add premium forecast endpoints to SDK#53
lorenzo-solcast merged 3 commits into
Solcast:mainfrom
nik-solcast:feature/premium-forecast-sdk

Conversation

@nik-solcast

Copy link
Copy Markdown
Collaborator

Adds premium PV and wind forecast endpoints while preserving compatibility-mode SDK structure. Tests: 35 passed.

@nik-solcast
nik-solcast force-pushed the feature/premium-forecast-sdk branch from 000b37f to 8e8325b Compare August 27, 2026 06:25
Read request-body schema descriptions when generating compatibility Args sections and retain the verified regenerated SDK output.
@nik-solcast
nik-solcast force-pushed the feature/premium-forecast-sdk branch from 8e8325b to 7fd20de Compare August 27, 2026 06:28
@michaelf-solcast

Copy link
Copy Markdown
Contributor

Changes look ok to me. Is the motivation for all the unrelated docstring changes, to get these aligned with that the automated generation approach would provide, to make it easier to use the automated generation in future?

The documentation at docs/forecast.md also needs to be updated to reference the premium options.

@nik-solcast

nik-solcast commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator Author

@michaelf-solcast yes, my intention is to align with the docstring as over time the SDK tells different story from the code and no one is updating it manually. If there is value in keeping different or shorter versions in some cases, that could also be handled.

@michaelf-solcast

Copy link
Copy Markdown
Contributor

Doco looks ok. Happy to approve the changes, provision on you having tested them in python, but I don't have permission to approve (need to be maintainer?)

@nik-solcast

Copy link
Copy Markdown
Collaborator Author
from solcast import forecast
response = forecast.premium_pv_power("8423-7088-7b9b-cc72")
print(response.code, response.success); print(response.to_dict()['forecasts'][:5])

200 True
[{'power': 0.0, 'period_end': '2026-08-31T01:30:00+00:00', 'period': 'PT30M'}, {'power': 0.0, 'period_end': '2026-08-31T02:00:00+00:00', 'period': 'PT30M'}, {'power': 0.0, 'period_end': '2026-08-31T02:30:00+00:00', 'period': 'PT30M'}, {'power': 0.0, 'period_end': '2026-08-31T03:00:00+00:00', 'period': 'PT30M'}, {'power': 0.0, 'period_end': '2026-08-31T03:30:00+00:00', 'period': 'PT30M'}]
response = forecast.premium_wind_power("a123-eb37-365f-2edb")
print(response.code, response.success); print(response.to_dict()['forecasts'][:5])

200 True
[{'power': 2.3724, 'period_end': '2026-08-31T01:30:00+00:00', 'period': 'PT30M'}, {'power': 2.4307, 'period_end': '2026-08-31T02:00:00+00:00', 'period': 'PT30M'}, {'power': 2.4892, 'period_end': '2026-08-31T02:30:00+00:00', 'period': 'PT30M'}, {'power': 2.531, 'period_end': '2026-08-31T03:00:00+00:00', 'period': 'PT30M'}, {'power': 2.7497, 'period_end': '2026-08-31T03:30:00+00:00', 'period': 'PT30M'}]

@lorenzo-solcast
lorenzo-solcast merged commit 439cb19 into Solcast:main Aug 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants